import Vue from 'vue'
import App from './App.vue'
import router from './router'
import config from '@/config'
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
import JsonViewer from 'vue-json-viewer'
import VueClipboard from 'vue-clipboard2'

Vue.config.productionTip = false

/**
 * @description 全局注册应用配置
 */
Vue.prototype.$config = config

/**
 * @description iview框架
 */
Vue.use(ViewUI)

/**
 * @description JSON查看视图
 */
Vue.use(JsonViewer)

/**
 * @description 复制内容到剪贴板
 */
Vue.use(VueClipboard)

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
